<%--
  Created by IntelliJ IDEA.
  User: lipengyu
  Date: 2022/11/12
  Time: 18:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
    <h3>1.查询所有</h3>
    <a href="${pageContext.request.contextPath}/car">查询所有租车信息</a>

    <h3>2.根据ID查询</h3>
    <form action="${pageContext.request.contextPath}/car/getByID" method="get">
        车辆id：<input type="text" name="carId" /><br>
        <input type="submit" value="查询">
    </form>

    <h3>3.添加一个新车辆</h3>
    <form action="${pageContext.request.contextPath}/car/save" method="post">
        车辆名称：<input type="text" name="carName"><br>
        车辆品牌：<input type="text" name="carBrand"><br>
        日租价格：<input type="text" name="carPrice"><br>
        <input type="submit" value="添加">
    </form>

    <h3>4.分页查询所有</h3>
    <a href="${pageContext.request.contextPath}/car/page/1">查询所有的车辆</a>
</body>
</html>
